#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
import threading

class Mythread(threading.Thread):
    def __init__(self, func, arg):
        super(Mythread, self).__init__()
        self.func = func
        self.arg = arg

    def run(self):
        self.func(self.arg)

def my_func(arg):
    print("这里是自定义的线程： {0}".format(threading.current_thread()))

obj = Mythread(my_func, arg=(1,2,3))
obj.start()